﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LandingPagesStats.Data.Mappings;
using LandingPagesStats.Models;


namespace LandingPagesStats.Data
{
    public class LandingPagesStatsDbContext : DbContext
    {
        public LandingPagesStatsDbContext()
            : base("LandingPagesStatsDb")
        { 
        }

        public IDbSet<Host> Hosts { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new HostMap());


            base.OnModelCreating(modelBuilder);
        }
    }
}
